package com.fuli.app.service;

import com.fuli.app.common.ActionResult;
import com.fuli.app.common.Pagination;
import com.fuli.app.dto.ReviewDTO;
import com.fuli.app.dto.query.ReviewQueryDTO;

import java.util.List;

public interface ReviewService {
    ActionResult<String> add(ReviewDTO dto);

    ActionResult<String> delete(String id);

    ActionResult<List<String>> batchDelete(List<String> ids);

    ActionResult<ReviewDTO> get(String id);

    ActionResult<Pagination<ReviewDTO>> listByQueryDTO(ReviewQueryDTO queryDTO);

    ActionResult<List<ReviewDTO>> getByWorkId(String workId);

    ActionResult<List<ReviewDTO>> getByUserId(String userId);
}
